﻿// Infrastructure/Logging/ConsoleLogger.cs

using System;

namespace DatabaseManager.Infrastructure.Logging
{
    public class ConsoleLogger : ILogger
    {
        public void Info(string message) => Console.WriteLine($"[INFO] {message}");
        public void Error(string message, Exception ex = null)
        {
            Console.WriteLine($"[ERROR] {message}");
            if (ex != null) Console.WriteLine(ex.ToString());
        }
        public void Debug(string message) => Console.WriteLine($"[DEBUG] {message}");
    }
}